<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnConfirmLimitTimeEntryLimitTimeInReviewFeedbackTable extends AbstractMigration
{
    public function up()
    {
        $this->table('review_feedback')
            ->addColumn('entry_limit_time', 'integer', ['null' => false, 'limit' => 11, 'default' => 0, 'signed' => false, 'comment' => '录入截至时间'])
            ->addColumn('confirm_limit_time', 'integer', ['null' => false, 'limit' => 11, 'default' => 0, 'signed' => false, 'comment' => '确认截至时间'])
            ->save();
    }

    public function down()
    {
        $this->table('review_feedback')
            ->removeColumn('entry_limit_time')
            ->removeColumn('confirm_limit_time')
            ->save();

    }
}
